# import random
# for i in range(3):
#     print(random.random())
#     #生成一个0到1的随机浮点数
#     print(random.uniform(1, 3))
# #     #生成两个数之间的随机浮点数]
# #     print(random.randint(1 ,999999))
# #     print('%06d' % random.randint(1 , 99999))
# #     print(random.randrange(1 , 10))
# #     print(random.randrange(1 , 10 , 2))
# #     print(random.choice([1, 2, 3, 'a', 'b', 'c']))
# #     print(random.choice('abcdef'))
# import time
# strmc = time.localtime()
# print(type(strmc))
# print(time.localtime(165517014.9964924))
# print(time.ctime())
#
# from datetime import datetime
# print(datetime.today())
# print(datetime.utcnow())
# times  = time.time()
# print(datetime.fromtimestamp(times))
# # print(type(datetime.fromtimestamp(times)))
# # datetime_str =
# from datetime import datetime, timedelta
# today = datetime.today()
# week1 = timedelta(weeks=1, days=1 , hours=2)
# #xx时间之后
# print(today + week1)
# #xx时间之前
# print(today - week1)
import  re
# re_obj = re.search('iphone', '苹果手机iphone')
# print(re_obj)
# print(re_obj.group())
# lists = re.findall('iphone', '苹果手机iphone')
# print(lists)
# re_obj = re.search('abc', 'helloabcdefg')
# print(re_obj)
# #
# print(re.search('he.', 'hello').group())
# print(re.search('he.', 'he-lo').group())
# print(re.search('he.', 'he/lo').group())
# print(re.search('he.', 'he\nlo'))  #　匹配不到
# print(re.search('he[123456abc=sa]', 'he2').group())
# print(re.search('he[123456abc=sa]', 'hea').group())
# print(re.search('he[0-9a-zA-Z]', 'hexxx').group())
import  re
# print(re.search('he*', 'haloowd').group())
# print(re.search('<[a-z]+>', '<htmll>').group())
# phone = input('手机号:')
# if re.search('^1[3-9]\d{9}$', phone):
#     print('合法')
# else:
#     print('不合法')
# msg = input('msg:')
# result = re.search('^he[3-9]\d{9}$', msg)
# if result:
#     print('ok')
import re
str1 = '<html><head></gead><body></html>'
print(re.search('<.{1,}>', str1).group())
str2 = '<html><head></gead><body></html>'
print(re.search('<.{2,}?>', str1).group())



